
const oss = require('../../../../oss/init.js')
const fs = require('fs')
const articlesModule = require('../../models/article/articlesModule.js')
const title ='计算机图形学3.md'
oss.getObject({    
    Region: 'ap-chengdu',
    Bucket: 'beloved-1308416229',
    Key:`/docs/计算机图形学/${title}`
}, function(err, data) {
    const content = data.Body.toString('utf-8')   
    const modelObj ={
        title,
        content:content,
        cover:'https://beloved-1308416229.cos.ap-chengdu.myqcloud.com/images/cover66.jpg',
        category_id:20,
    }
    articlesModule.create(modelObj)    
});